package com.air.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Flight implements Serializable {
    private Long id;
    //航班号
    private String flightNumber;
    //航空公司id
    private Long airlineId;
    //航空公司名称
    private String airlineName;
    //航班状态 1：正常 2：取消
    private Integer status;
    //起飞地点
    private String flightFrom;
    //到达地点
    private String flightTo;
    //起飞时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime flightStartTime;
    //到达时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime flightEndTime;
    //航班时长
    private Integer flightTime;
    //修改时间
    private LocalDateTime updateTime;
    //创建时间
    private LocalDateTime createTime;
}
